package hashcodeequals;

/**
 * @author cyt
 * @create 2020-09-08 17:28
 */
public class TestTwo {
    public static void main(String[] args) {
        Object o2 = new Object();
        Object o1 = new Object();
        /**
         *   return (this == obj);
         */
        System.out.println(o1.equals(o2));
        int a = 1;
        int b = 1;
        String strA = new String("a");
        String strB = new String("a");
        System.out.println("strA.equals(strB) - > " + strA.equals(strB));

        System.out.println(strA == strB);

        System.out.println(a == b);
    }
}
